package com.aconcagua.samples.charts.service {
  import com.aconcagua.mvc.service.ServiceInvoker;
  import com.aconcagua.mvc.service.support.ServiceDelegateSupport;

  public class ChartServiceDelegateImpl extends ServiceDelegateSupport implements ChartServiceDelegate {
    private var _service: Object;
    
    public function ChartServiceDelegateImpl(invokerClass: Class, service: Object) {
      super(invokerClass);
      _service = service;
    }

    public function getData(dateFrom:Date, dateTo:Date): ServiceInvoker {
      return this.createInvoker(
        _service.getData,
        [dateFrom, dateTo]
      );
    }
  }
}